# -*- coding: utf-8 -*-
from django.contrib import admin
from models import *


class ExtConfigBase:

    template_inherits='base.html'


class ListConfig(ExtConfigBase):
    view='list'
    template='djangoext/list.html'
    page_size=25
    rights = {'edit':True, 'add':True, 'delete':True }
    fields_list_methods=[]


class TreeConfig(ExtConfigBase):
    view='tree'
    template='djangoext/tree.html'
    field='pk'
    rights = {'edit':True, 'add':True, 'delete':True }
